<header class="tpl-header">
    <!-- 右侧内容 -->
    <div class="tpl-header-fluid">
        <!--&lt;!&ndash; 侧边切换 &ndash;&gt;-->
        <!--<div class="am-fl tpl-header-button switch-button">-->
            <!--<i class="iconfont icon-menufold"></i>-->
        <!--</div>-->
        <!-- 刷新页面 -->
        <div class="am-fl tpl-header-button refresh-button">
            <i class="iconfont icon-refresh"></i>
        </div>
        <!-- 其它功能-->
        <div class="am-fr tpl-header-navbar">
            <ul>
                <!-- 欢迎语 -->
                <li class="am-text-sm tpl-header-navbar-welcome">
                    <a href="index.php?s=/store/store.user/renew">欢迎你，<span id="user">admin</span>
                    </a>
                </li>
                <!-- 退出 -->
                <li class="am-text-sm">
                    <a href="/passport/logout">
                        <i class="iconfont icon-tuichu"></i> 退出
                    </a>
                </li>
            </ul>
        </div>
    </div>
</header>
<script language="JavaScript">
    var user = JSON.parse(localStorage.getItem("user"));
    $("#user").text(user.username);
</script>
  